Please do your work inside this page and return this page in a zip file to your instructor via email.
1. Define a global variable called studentName and assign your name to the field.
2. Define a global variable called courseName and assign the course name "WDV221 Intro to Javascript" to the variable.
3. Create a runtime script that will display studentName as an H1 element and the courseName as an H2 element.
4. Create a function called displayCourseName that will use an alert() to display the courseName variable. Use an onclick event handler on this paragraph to call the function. The message should be 'Course Name: theName'. Use the courseName variable for theName.
5. Given the form create a function called computeCost. The computeCost function should do the following things:
Note: Even if you do not complete the function make sure it runs without breaking. Partial credit will be given for any work that runs corectly.
Add a field to the form called Sales Tax. Calculate the Sales tax on the Total Price and display it on the form in the Sales Tax field. Add the Sales Tax to the Total Price and change the Total Price field to reflect the new amount.